<template>
  <div class="productList">
    <div class="productItem" v-for="(item,index) in productList" :key="index">
        <product-vue :product="item"></product-vue>
    </div>
  </div>
</template>

<script>
  import ProductVue from './Product.vue';
export default {
  components:{
    ProductVue
  },
  props:{
    productList:{
      type:Array,
      default:[]
    }
  }
}
</script>

<style scoped>
.productList{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
</style>